import request from '@/utils/request'

// 创建应急人员
export function createEmergencyReservePlainP(data) {
  return request({
    url: '/biz/emergency-reserve-plain-p/create',
    method: 'post',
    data: data
  })
}

// 更新应急人员
export function updateEmergencyReservePlainP(data) {
  return request({
    url: '/biz/emergency-reserve-plain-p/update',
    method: 'put',
    data: data
  })
}

// 删除应急人员
export function deleteEmergencyReservePlainP(id) {
  return request({
    url: '/biz/emergency-reserve-plain-p/delete?id=' + id,
    method: 'delete'
  })
}

// 获得应急人员
export function getEmergencyReservePlainP(id) {
  return request({
    url: '/biz/emergency-reserve-plain-p/get?id=' + id,
    method: 'get'
  })
}

// 获得应急人员分页
export function getEmergencyReservePlainPPage(query) {
  return request({
    url: '/biz/emergency-reserve-plain-p/page',
    method: 'get',
    params: query
  })
}

// 导出应急人员 Excel
export function exportEmergencyReservePlainPExcel(query) {
  return request({
    url: '/biz/emergency-reserve-plain-p/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 获得应急人员所有数据
export function getEmergencyReservePlainDeptListAll() {
  return request({
    url: '/biz/emergency-reserve-plain-p/list/all',
    method: 'get'
  })
}
